<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			/* 并集选择器 */
			html, body {
				height: 100%;
				padding: 0px;
				margin: 0px;
			}
			.bg {
				background-image: url(../img/bg.jpg);
				background-repeat: no-repeat;
				background-size: 100% 100%;
				height: 100%;
			}
			/* height: 100%
				使用父元素高度
			 */
		</style>
	</head>
	<body>
		<div class="bg">
			
		</div>
	</body>
</html>
